package com.ld.common;

import java.time.ZoneOffset;
import java.time.format.DateTimeFormatter;

public interface CommonConstant {
    //请求成功响应信息
    String REQUEST_SUCCESS_MESSAGE = "success";
    //请求失败响应信息
    String REQUEST_FAILED_MESSAGE = "fail";
    //请求成功响应编码
    Integer REQUEST_SUCCESS_CODE = 200;
    //请求失败响应编码
    int REQUEST_FAILED_CODE = 500;
    //登录认证header
    String TOKEN = "shanli";
    String DEFAULT_CONTENT_TYPE = "application/json;charset=UTF-8";
    DateTimeFormatter TIME_FORMATTER = DateTimeFormatter.ofPattern("HH:mm");
    DateTimeFormatter DATE_FORMATTER = DateTimeFormatter.ofPattern("MM-dd");
    DateTimeFormatter CHINESE_MONTH_FORMATTER = DateTimeFormatter.ofPattern("M月");
    String ID_SEPARATOR = ",";
    String FIND_IN_SET = "FIND_IN_SET(%d,%s)";
    ZoneOffset ZONE = ZoneOffset.of("+8");
    Integer REDIS_DEFAULT_INDEX = 3;
    String REDIS_TASK_CONFIRM_KEY = "inspection:task:confirm:";
}
